import pytest
import requests

from common.yaml_util import YamlUtil


@pytest.fixture(scope="function")
def connect_database():
    print("连接数据库")
    yield
    print("关闭数据库")

@pytest.fixture(scope="session",autouse=True)
def clear_yaml():
    YamlUtil().clear_tract_yaml()